package com.exam.api.modules.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.exam.api.modules.goods.domain.TblProductInfo;
import com.exam.api.modules.goods.vo.ProductSkuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface TblProductInfoMapper extends BaseMapper<TblProductInfo> {

    @Select("SELECT sku.sku_id,sku.spec_value_name, pro.item_id, pro.title  FROM tbl_product_sku_info sku LEFT JOIN tbl_product_info pro ON sku.item_id = pro.item_id  ORDER BY pro.title")
    List<ProductSkuVO> selectAllSkuList();
}